<?php

/**
 * 货代公司 
 */
class Application_Model_AgentCompany extends Application_Model_DomainObject{
    
    protected $_id;
    
    protected $_name;
    
    protected $_contactName;//联系人姓名
    
    protected $_contactTel;//联系电话
    
    protected $_contactQq;//联系QQ
    
    protected $_description;//描术
    
    protected $_host;
   
    protected $_username;
    
    protected $_password;


        /**
         * 获取全部的发货渠道
         * @return type
         */
        public static function getAgentAll()
        {
            return self::getDao()->queryAll(array());
        }
        public static function getAgentOne($id)
        {
            $where[' id = '] = $id;
            $db = new Application_Model_DbTable_AgentCompany();
            $result = $db->queryOne($where);
            return $result;
        } 

		public static function getEffectivelyAgent() {
			$db = new Application_Model_DbTable_agentcompany();
			return $db->getEffectivelyAgent();
		}
}

